package com.infonova.education.microservice.service.impl;

import com.infonova.education.microservice.repository.CustomerRepository;
import com.infonova.education.microservice.repository.entity.Customer;
import com.infonova.education.microservice.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by christian.weber on 21.10.2014.
 */
@Service
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    private CustomerRepository customerRepository;

    @Override
    public Iterable<Customer> getAllCustomers() {
       return customerRepository.findAll();
    }
}
